﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true"
    CodeBehind="AddArticle.aspx.cs" Inherits="School.UserCentents.AddArticle1"  validateRequest="false" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="/js/editor/kindeditor-min.js"  charset="utf-8" type="text/javascript"></script>
    <script type="text/javascript">
        KE.show({
            id: '<%=txtContent.ClientID %>',
            imageUploadJson: '<%=HttpContext.Current.Request.ApplicationPath %>js/editor/asp.net/upload_json.ashx',
            fileManagerJson: '<%=HttpContext.Current.Request.ApplicationPath %>js/editor/asp.net/file_manager_json.ashx',
            allowFileManager: true,
            afterCreate: function (id) {
               
            }
        });


        function txtContent_onclick() {

        }

    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_icon1.gif">写文章</div>
            <div class="iclass">
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBodyShow">
            <div id="PostForm">
                <div class="post0">
                    <table cellspacing="0" cellpadding="0" border="0" id="UserPost">
                        <tbody>
                            <tr>
                                <td class="title">
                                    <label for="topic">
                                        文章标题：</label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                                    时间：<asp:TextBox ID="txtAddDate" class="Wdate" size="38" onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日 HH时mm分ss秒'})" runat="server"></asp:TextBox>
                                        <%--<input type="text" size="38" name="txtAddDate" id="txtAddDate" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日 HH时mm分ss秒',vel:'addtime'})"
                                        value="" id="txtDate"/>--%>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    文章内容：
                                </td>
                                <td>
                                <%--编辑器开始--%>
                                <asp:TextBox ID="txtContent" TextMode="MultiLine"  Columns="100" Rows="8" runat="server" style="width:700px;height:200px;visibility:hidden;"></asp:TextBox>
        <%--<textarea id="txtContent" name="txtContent" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" onclick="return txtContent_onclick()"></textarea>--%>
        <br />
                                <%--编辑器结束--%>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    <label for="logtags">
                                        文章分类：</label>
                                </td>
                                <td>
                                    <span id="span_subject">
                                        <asp:DropDownList ID="ddlType" runat="server">
                                        </asp:DropDownList>
                                    </span> &#12288;<a onclick="showaddsubject('',0)" href="javascript:">添加分类</a><a>
                                        </a>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    文章设置：
                                </td>
                                <td>
                                    允许评论<asp:CheckBox ID="encmt" runat="server" />
                                    <%--<input type="checkbox" value="1" id="encmt" name="encmt"/>--%>
                                     <%--         <input type="checkbox" value="1" id="istop" name="istop">在首页固顶
                                    <input type="checkbox" value="1" id="isfulltext" name="isfulltext">在首页显示全文--%>
                                </td>
                            </tr>
                            <%--<tr>
                                <td class="title">
                                    <label for="ispassword">
                                        文章密码：</label>
                                </td>
                                <td>
                                    <input type="text" value="" class="InputTxt" maxlength="30" size="40" name="readpwd"
                                        id="readpwd">
                                </td>
                            </tr>--%>
                        </tbody>
                    </table>
                </div>
            </div>
            <div id="PostBtn">
                <div class="left">
                    <input type="submit" title="发布文章"
                        value="发布文章" id="ob_submit" />
                  <%--  <input type="button"  title="保存为草稿"
                        value="存为草稿" id="ob_submit_d">--%>
                    <input type="hidden" value='<%:ViewState["action"] %>' id="hidAction" name="hidAction"/>
                </div>
                <div class="right">
                    <span style="display: none;" id="save_ing"></span>
                </div>
            </div>
        </div>
        <!-- 右侧结束 -->
    </div>
</asp:Content>
